﻿@model Zatify.WebUI.Models.UserProfileBusinessReviewViewModel
@{
    ViewBag.Title = Model.BusinessName;
    Layout = "~/Views/Shared/_MainLayout.cshtml";
}
<div class="wrapper">
    <!--inner container-->
    <div class="inner_container" style="float: none;">
        <h2>
            @Model.BusinessName
            <p class="sub_title_hd">@Model.BusinessAddress<span class="distance">
                @if (Model.BusinessDistance.HasValue)
                { 
                    @Model.BusinessDistance.Value.ToString("0.00")<text>mi</text>
                }
                else
                {
                    <text>N/A</text> 
                }</span></p>
        </h2>
        <div class="details_banner" style="text-align: center;">
            <img alt="" src="@Url.Action("GetBusinessPhoto", "UserProfile", new { businessId = Model.BusinessId, w = 940, h = 350 })" />
        </div>
        <div class="deal_more_info">
            <h3>
                Add Review</h3>
            <div class="review_textbox">
                @*<textarea class="review_textarea"></textarea>*@
                @using (Html.BeginForm())
                {
                    @Html.TextBoxFor(r => r.ReviewText, new { @class = "review_textarea" })
                    <input type="submit" value="Submit" class="gold_btn review_submit_btn" />
                    @Html.HiddenFor(r => r.Rating)
                    @Html.Partial("FiveStarRatingControl");
                    @Html.ValidationSummary()
                }
            </div>
        </div>
    </div>
    <!--end inner container-->
    <div class="clearfix">
    </div>
</div>
